﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebForm.Web.Upload.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../../scripts/uploadify/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="../../scripts/uploadify/jquery.uploadify.v2.1.4.js" type="text/javascript"></script>
    <script src="../../scripts/uploadify/swfobject.js" type="text/javascript"></script>
    <link href="../../scripts/uploadify/uploadify.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript"> 
       $(document).ready(function() {
           $("#uploadify").uploadify({ 
                'hideButton': true,
                'uploader': '../../scripts/uploadify/uploadify.swf',//进度条，Uploadify里面含有 
                'script': 'jqueryUploadifyHandler.ashx',//一般处理程序 
                'cancelImg': '../../scripts/uploadify/cancel.png',//取消图片路径 
                'folder': 'UploadFiles',//上传文件夹名 
                'queueID': 'fileQueue',
                'buttonImage': '../../scripts/uploadify/cancel.png',
                'auto': false, 
                'multi': true 
                }); 
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <input type="file" id="uploadify" /> 
        <a href="javascript:$('#uploadify').uploadifyUpload()">上传</a>| <a href="javascript:$('#uploadify').uploadifyClearQueue()">
            取消上传</a>
        <div id="fileQueue">
        </div>
    </div>
    </form>
</body>
</html>
